package com.company;

import java.util.ArrayList;

/**
 * @description:
 * @author: Lenovo
 * @date: Crcoted in 2020/05/27 20:23
 * @version:${VERSION}
 * @modified By:
 */
public class MonstersSet  {
    private ArrayList<Monsters>BadMonster = new ArrayList<Monsters>();


    public Monsters get(String id){
        Monsters monsters = null;
        for (Monsters item:BadMonster
        ) {
            if(true ==id.equals(item.getId())){
                monsters= item;
                break;
            }
        }
        return monsters;
    }

    public MonstersSet() {
    }

    public MonstersSet(ArrayList<Monsters> badMonster) {
        BadMonster = badMonster;
    }

    public ArrayList<Monsters> getBadMonster() {
        return BadMonster;
    }

    public void setBadMonster(ArrayList<Monsters> badMonster) {
        BadMonster = badMonster;
    }
}




